d3.selectAll("rect")
.attr("y", 50)
.style("fill", "red")
.attr("x", (d, i, all) => 100 * i);
<svg>
<rect y="50" style="fill: red" x="0"></rect>
<rect y="50" style="fill: red" x="100"></rect>
<rect y="50" style="fill: red" x="200"></rect>
</svg>
d3.selectAll("elemento")
d3.select("elemento")
d3.selectAll("elemento")
d3.select("elemento")
d3.selectAll("ul");
d3.selectAll("ul")
.selectAll("li");
d3.selectAll("ul")
.selectAll("li");
d3.selectAll("ul");
d3.selectAll("ul")
.select("li");
d3.selectAll("ul")
.select("li");
d3.selectAll("ul")
.select("li");
const seleccion = d3.selectAll("ul").select("li");
console.log(seleccion);
const seleccion = d3.selectAll("ul").selectAll("li");
console.log(seleccion);
seleccion.append
d3.selectAll("ul")
.append("li");